home *** CD-ROM | disk | FTP | other *** search
- /*
- * Please do not edit this file.
- * It was generated using rpcgen.
- */
-
- #include <memory.h> /* for memset */
- #include "nispasswd.h"
-
- /* Default timeout can be changed using clnt_control() */
- static struct timeval TIMEOUT = { 25, 0 };
-
- nispasswd_authresult *
- nispasswd_authenticate_1(npd_request *argp, CLIENT *clnt)
- {
- static nispasswd_authresult clnt_res;
-
- memset((char *)&clnt_res, 0, sizeof(clnt_res));
- if (clnt_call(clnt, NISPASSWD_AUTHENTICATE, (xdrproc_t) xdr_npd_request, argp, (xdrproc_t) xdr_nispasswd_authresult, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }
-
- nispasswd_updresult *
- nispasswd_update_1(npd_update *argp, CLIENT *clnt)
- {
- static nispasswd_updresult clnt_res;
-
- memset((char *)&clnt_res, 0, sizeof(clnt_res));
- if (clnt_call(clnt, NISPASSWD_UPDATE, (xdrproc_t) xdr_npd_update, argp, (xdrproc_t) xdr_nispasswd_updresult, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }
-